<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>归档</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/animate.css">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">

</head>
<style th:inline="css">
    body {
        background-image: url('https://img.zzzmh.cn/fhd/32fec1a3880911ebb6edd017c2d2eca2.webp') !important;
        background-size: 100% 800px !important;
        background-attachment: fixed !important;
        background-repeat: no-repeat !important;
    }
</style>
<body>
<!--导航-->
<nav th:replace="_fragments :: menu(4)"></nav>

<!--中间内容-->
<div class="m-padded-tb-max m-container-small animate__animated animate__fadeInUp">
    <div class="ui container">
        <div class="ui segment m-shadow-small">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui header"><i class="archive icon"></i> 归档</h3>
                </div>
                <div class="right aligned column">
                    共 <h2 class="ui orange header m-inline-block" th:text="${blogCount}"> 6 </h2> 篇
                </div>
            </div>
        </div>
    </div>

    <br>
    <th:block th:each="item : ${archiveMap}">
        <h2 class="ui orange horizontal divider header m-text-thin" th:text="${item.key}">2021</h2>
        <div class="ui fluid vertical menu">
            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" class="item" th:each="blog : ${item.value}">
            <span>
                <i class="map marker icon"></i><span th:text="${blog.title}">关于旅行日记的说明</span>
                <div class="ui blue basic left label m-padded-mini m-text-thin"
                     th:text="${#dates.format(blog.updateTime,'MMMdd')}">1月11日</div>
            </span>
                <div class="ui orange basic left label m-padded-mini m-text-thin"
                     th:text="${blog.flag}">原创</div>
            </a>
        </div>
    </th:block>

</div>

<!--底部footer-->
<footer th:replace="_fragments :: footer"></footer>

<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<!--------板娘模板-------->
<script src="https://cdn.jsdelivr.net/gh/Fog-Forest/live2d@1.0.2/live2d_load/autoload.js"></script>
<!--/*/</th:block>/*/-->


<!--导航的手机端按钮的响应页面-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide')
    })
    ;
</script>

</body>
</html>